package com.bw.culture.net

import com.bw.base.constants.ApiConst
import com.bw.culture.entity.NewsEntity
import com.bw.http.utils.Res
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST

interface ApiService {
    @GET(ApiConst.URL_GET_NEW)
    suspend fun getNews():Res<List<NewsEntity>>

    @POST(ApiConst.URL_POST_ADD_NEW)
    suspend fun getAddNew(@Body newsEntity: NewsEntity) : Res<NewsEntity>

}